ResourceLock Method (String, String, String) |
Lock a resource based on the given parameters.
Namespace:
Independentsoft.Webdav
Assembly:
Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntaxpublic ActiveLock Lock(
string address,
string depth,
string timeout
)
Public Function Lock (
address As String,
depth As String,
timeout As String
) As ActiveLock
Parameters
- address
- Type: SystemString
The URI of the resource to lock. - depth
- Type: SystemString
The depth of lock. Allowed values are: Depth.Zero and Depth.Infinity - timeout
- Type: SystemString
The lock timeout as either "Second-n" (where "n" is number between 0 and 4294967295) or "Infinite".
Return Value
Type:
ActiveLockAn ActiveLock as result of lock operation.
See Also